handling multiple, two and no values constraints