update BDD and add stats