work on hierarchical domain