add bayes methods