     collection.distinct 'countryCode', {}, (err, countryCodes) =>
       return callback err  if err
 
-      countries = countryCodes.map (countryCode) => =>
+      countries = countryCodes.map (countryCode) => (next) =>
 
         collection.distinct 'stateCode', { countryCode }, (err, stateCodes) =>
           return callback err  if err
 
-          states = stateCodes.filter(Boolean).map (stateCode) => =>
+          states = stateCodes.filter(Boolean).map (stateCode) => (nextState) =>
 
             @one { stateCode, countryCode }, (err, location) ->
 

KodingError = require '../../error'
{ Model, secure, daisy, signature } = require 'bongo'

module.exports = class JLocation extends Model


                stateCode   : location.stateCode
                state       : location.state

              state.save nextState

          async.seris states, -> next()

      async.series countries, -> callback null

  @importAll = secure (client, callback) ->

