hierarchy building from h1