formated the codes