eliminated hash map that maps node to a set of children