updated equality operator for Refs