minor alterations to CodeBook