fixed breeze version of gibbs code