public void connectHLine(String fieldType, CABot3Net retNet, CABot3Net linesNet) {
    int netSize =retNet.getInputSize();
    int retinaOffset = getRetOffset(fieldType)*netSize;
    int lineOffset = getLineOffset(fieldType, "Hline")*netSize;
    int column;
    int row;
    int cols = retNet.getCols();
    double weight=1.2;

    int retNeurIndex;
    int lineNeurIndex;
    //System.out.println("fieldType: "+fieldType+" Hline");
    //We are going to add conections to "inputSize" number of neurons in the line net
    //These neurons will begin in the position determined by the lineOffset value
    //connections will come from neurons that are in the same row (retinotopically)
    for (int i = 0; i < netSize; i++){
      row = i/cols;
      column=i%cols;

      if((row>5 && row<45) && (column>5 && column<cols-5)){//leave off the edges
        retNeurIndex=i+retinaOffset;
        lineNeurIndex=i+lineOffset;
        //System.out.println("lineNeurIndex: "+lineNeurIndex);

        //add central connection
        retNet.neurons[retNeurIndex].addConnection(linesNet.neurons[lineNeurIndex], weight);

        //need to check that the connections arent "falling off" the edge of the retina;
        column=i%retNet.getCols();
        if(column>0){//retinal neuron is not right on the left edge of the vis field - add synapse
          retNet.neurons[retNeurIndex-1].addConnection(linesNet.neurons[lineNeurIndex], weight);
        }
        if(column>1){//retinal neuron is 2 or more cols from the left edge of the vis field - add synapse
          retNet.neurons[retNeurIndex-2].addConnection(linesNet.neurons[lineNeurIndex], weight);
        }
        if (column<retNet.getCols()-2){//we are not right at the RHS of the vis field
          retNet.neurons[retNeurIndex+2].addConnection(linesNet.neurons[lineNeurIndex], weight);
        }
        if (column<retNet.getCols()-1){//we are not right at the RHS of the vis field
          retNet.neurons[retNeurIndex+1].addConnection(linesNet.neurons[lineNeurIndex], weight);
        }
        rebuildHLineEnds(lineNeurIndex, 1, linesNet);
      }
    }


  }