equal op for entities