update codebook style