can now calculate cumulative.