fixed gibbs sampling