correct comparator