updates to bayes computation