added bitwise negation, made comparison results boolean