parallel_scan and aggregate