rebuild map.