reformat the doc