updated the program for 161 nodes