working on video files now
minor refactoring