separate function to add mcmc stats
docs