You're right; I misread your code.  `SelectMany()` is used to replace nested loops.