updated codebook and the script