fixed stdev calc