added computation of variance