update for mcmc.