chapter 6 cleanup