new function + bug in hpdd exp