performed some checking on function Generation.compute_new_nodes