define the boolean operation in a List