making hierachy