added comparison operators to be used in merging operators