Change equals method