comparator done