made the playback search algorithm easier to understand