add cal for mean and variance