update codebook design