put the doplay function in the head
ditched ios