need to use log version of bayes