hierarchy: logging the hierachical structure