added video functions