little refactor in playlistgeneration