added default return value to docType switch