modified codebook