adding comparator to collections