adding bayes updating, not finished