added tree node filtering