process codebook