make chapter 3 work, mostly