add some checkFunInTree, some modify in the past