with codebook and ready