change attributeConstraint for attributes.