commit before submission