dynamic hierarchical filter implementation