adjust map and then

1. distinguish the map and flatten map.
2. add log to then proccession