shouldn't you list-comp the flattened list, or am I misreading this?