pattern matching of attribute name