added accumulation formulas