updated naive bayes classifier