added code for video creation