gibbs sampling modifications