correct codebook