added video function