fixed stdDeviation error