revise the document