fixed bitwise OR to logical OR