added a done statement to the upload