finalized the chapter 4 changes