advanced codebook