changed way of summing a boolean