fix equal method