update documents