properly initialize comparators.