clean up and move file