Fixed codebook formatting