refactor on video box