hth: fixing chapter 12