last clean up before submission