redone for optimized youtube uploading