refactoring to improve track playback when starting new tracks