change the equal method