made it so a node could appear twice in a tree