codebook variables arrange