cleaning up some code, added variables for slates and video