Modified range aggregator collect()