fixed attrArray()