refine and finished uploading