added types for bayesian nodes