had to move previous_song_track_id back out of the while and declare as a global