Updated gibbs for multiple datasets