slight changes to upload