implemented (in)equality, input/output
TODO: remove debug messages