took out the check whether the nodes are the same value