editing for upload