added document_check & document_update methods