adding total risk numbers to output