replace inclusive scan with exclusive scan.