added some simple stats in the formula (min, max, avg, stdev)