added code to sync audio to video