add func find_target_nodes. This time I did a real commit.