updated BayesNetGenerator