reformat the file