for (i = 0; i < connections.length; ++i) {
        var connection = connections[i];
        connection.select();
      }