add reduction step for y-sweep