add mean and variance