Use into instead of flatten