changed bitwise or operator to logical or operator