cleanING up bayesact engine codes