fixed the dupicates from being put in the tree
need to find a way to get the graph back