fix to chapter 4