flat map procuced, bugs apparent