not working, need to loop play and pause