added hierarchy checking