add playlist function.