     @individualPlan = ko.observable(@plans[2])
 
     # team billing
-    @teamPlan = ko.observable(null)
     @collaborators = ko.observable(null)
 
     @showTeam = ko.observable(false)
 
     @teamTotal = @komp =>
+      return 0 unless @collaborators()
       total = 0
-      if @collaborators()
-        for u in @collaborators()
-          total += u.plan().price if u.plan()
+      for c in @collaborators()
+        total += c.plan().price if c.plan()
       total
 
     @overallTotal = @komp =>

      url: "/api/v1/user/pay"
      event: event
      type: "POST"
      data: JSON.stringify {token: response, plan: @individualPlan().plan}
      success: () =>
        @paid true
    )


  toggleTeam: () =>
    @showTeam !@showTeam()

  teamPlans: () =>
    return {} unless @collaborators()
    result = {}
    for c in @collaborators()
      result[c.login] = c.plan().plan if c.plan()
    result



