added code to deal with video captions