fixed chapter 5 and references