replacing bitwise or with logical or