add check for __eq__