formatting the doc