changed to attributeChanged