reformat some code