cleaning up for upload of new data