finish up code to submit