final version of code & codebook