Updating the codeBook