simplify
generalize pAttr