fixes for end of chapter 9