uploading first not working implementation