update top_nodes