enhanced previous track logic