updated format of codebook