working on c mcmc