more fixes in chapter 9