improvements to statCalc