reformat code in server