data gathering: codebook builder