made changes for upload