add cumulative math functions