codebook first version