codebook finished