reformat documents