found part of the problem in codebook