some correction in codebook