equivalent_node() functions fixed, return was wrong