initialized with a map.