modifying condition of node_ip and node_name