codebook written