an improved CodeBook