refactoring playlist