         getTopoJsonLayer("data/tz_wards.topojson", "tz_wards", false)
       ]).then((data) ->
 
-        regionLayer = data[0]
-        wardLayer   = data[1]
+        [regions, regionLayer] = data[0]
+        [wards, wardLayer]     = data[1]
 
         ################
         ### MAKE MAP ###

          return unless val

          # only 26 regions so a simple linear search is ok
          for f in regions.features
            r = f.properties.REGNAME.toLowerCase()

            if r == val.toLowerCase()
              # turn into lat lon arrays
              points = L.GeoJSON.coordsToLatLngs(f.geometry.coordinates,2)
              # instantiate as multipolygon to get the bounds
              bounds = L.multiPolygon(points).getBounds()
              map.fitBounds(bounds)
              return
        )
      )

    modalSpinner.open()

      addToScope(data[1], "ward")

      # Initialise the map
      initMap([], new L.LatLng(-6.3153, 35.15625))
      modalSpinner.close()
    )
