improves matching of patterns for unit description