final cleanup before submission