addying missing code on bayesrule