corpus ids must be considerd in distinct as well