adding video helper code