speed up for mcmc