use stddev instead of variance