edited playlist function