chapter 7 notes updated, removed for each loop