add comparator