chapter 3 cleanup