clean up comparator api