change document type