more code changes for thebook