doing codebook