creating playlist code is modified