flatmap zat shit