update of the document