two-bucket method