done with naive bayesian simulation