need dat flatmap b/c toArray is trickily named