substitution of bitwise operator by bool operator