removed bug from gibbs and hacked likelihood