add a dependence distilling function.