adding concat and flatMap