naive bayes updated