work on Bayes DP