fixed equals method