diff --git a/src/edu/jhu/hltcoe/data/DepTree.java b/src/edu/jhu/hltcoe/data/DepTree.java
index <HASH>..<HASH> 100644
--- a/src/edu/jhu/hltcoe/data/DepTree.java
+++ b/src/edu/jhu/hltcoe/data/DepTree.java
@@ -121,13 +121,10 @@ public class DepTree implements Iterable<DepTreeNode> {
     private void addParentChildLinksToNodes() {
         checkTree();
         for (int i=0; i<parents.length; i++) {
-            NonprojDepTreeNode node = (NonprojDepTreeNode)getNodeByPosition(i);
-            node.setParent((NonprojDepTreeNode)getNodeByPosition(parents[i]));
-            for (int j=0; j<parents.length; j++) {
-                if (parents[j] == i) {
-                    node.addChild((NonprojDepTreeNode)getNodeByPosition(j));
-                }
-            }
+            NonprojDepTreeNode child = (NonprojDepTreeNode)getNodeByPosition(i);
+            NonprojDepTreeNode parent = (NonprojDepTreeNode)getNodeByPosition(parents[i]);
+            child.setParent(parent);
+            parent.addChild(child);
         }
     }
Bug fix: wasn't adding child to wall node

git-svn-id: svn+ssh://external.hltcoe.jhu.edu/home/hltcoe/mgormley/public/repos/dep_parse_filtered/trunk@<I> <I>f-cb4b-<I>-8b<I>-c<I>bcb<I>