update for chapter 5