[UPDATE] switch to Welford's method.