cleanup chapter 4