resolve hierarchy