remove flat_map (already in lang)