reformat source codes