changed remove playlist function and added a sleep