added a new constraint that works like the or constraint