moved variable grouping for video