changed the function of calculation radius of node.