updated Bayesian network to be more dynamic