           queue.next()
 
       ->
-        createHelper.save_ 'group', group, queue, (err) ->
+        save_ 'group', group, queue, (err) ->
           if err
             JName.release group.slug, -> callback err
           else

      subPage    : require '../../render/loggedout/subpage'


  createHelper =

    save_ : (label, model, queue, callback) ->
      model.save (err) ->
        return callback err  if err
        console.log "#{label} is saved"
        queue.next()


  @create = (client, groupData, owner, callback) ->

          queue.next()

      ->
        save_ 'default permission set', defaultPermissionSet, queue, callback

      ->
        group.addDefaultPermissionSet defaultPermissionSet, (err) ->
