add the Gibbs sampling