add video and window function.