cleanup before submission
cleanup before submission(2)