modifying codebook, adding variables definition