cleanup for submission process