synchronize the document