move mean and variance to model