added playlist functions