change attributeConstraint for attributes