made case of bool conversions more efficient