fix to print the array length of nodes (all_nodes.length)