[NEW] add codebook