reformat class