bitwise logic issue comparing with multiple bits