intermediate result in getting a dense out of hierarchical structure