switched standard deviation calc to something I understand