reformat the codes.