modify for video to assign tag_main_func