code to submit