adding hierarchy