reformat of file