adding constraints