Implemented update_document
fixed conflict