update document and GET method