equals method changes