finished comparator