got the top nodes to id