CodeBook completion