change the equals method