change equal method