implements PlayList function