         # setting alreadyMember to true if error is not unknownUsernameError
         # ignoring other errors here since our only concern is checking if user exists
         alreadyMember = errorMessage isnt unknownUsernameError
-        queue.next()
+        next()
 
-    ->
+    (next) ->
       # generating callback function to be used in both login and convert
       joinTeamKallback = generateJoinTeamKallback res, body
 


  queue = [

    ->
      koding.fetchClient clientId, context, (client_) ->
        client = client_



  ]

  async.series queue


generateJoinTeamKallback = (res, body) ->
