formated code for submission