added calculate accumulation.