new flag bayes