added node_stats generation
updated number of nodes