detect bool sums