clean up for submission