changes maps to map.