modified naive bayes