working on new 3 level hierarchy