added code to project that synchronizes with video