updates to tree filter. Still broken