chapter 5 mid-flow