updated items.DocumentType logic