added doc_type