simplify Attribute. it now contains only value and attr.