fix accumulation