finish debugging naive_bayes