ch2: flatten