Updating comparator()