cvg: Must declare errRep before using it