optimized "buildSongList" method