hierarchical rules working