add comments to tree-filtering