Switched refs to pointers for equality purposes