format the doc