formatting the document for readablity