updated bayes so it will compile