updated connect_node