fixed video function done