revise number of nodes