added the comparator