attempted refactor for videos