optimize AttributeList class