update the mcmc code.