added attributeChanged case