reformate the code