updates constraint