give standardDeviation a second type parameter