after cahngeing the playing function to music for access from different functions and classes