export the MCMC function