some leftover from chapter 6