update the constraints.