adding a comparator