add the func of find_target_nodes.