added makeVideo funtion