finish comparator inner class