add boundary constraint