update document type