created codebook