added error handling to getTrackName