added playlist function