   for(uint8_t column_index=0; column_index < 8; column_index++) 
   {
     uint8_t i = untztrument.xy2i(column_index, y);
-     if (layer == LAYERS-1)
+    if (layer == LAYERS-1)
     {
       if (setit)
       {

      // shift all notes and redraw columns
      for(uint8_t row_index=0; row_index < grid_width[visible_grid_set]; row_index++) 
      {
        if (((temp + row_index) % 7) == 0) //todo this needs to actually point to the C's in a scale (%7 for the moment), scales can have different sizes but Middle C is always placed in the center of the note scale. 
        {
          line_horz(row_index, true);
          //todo need to adjust encoder value back a notch when at limit so that we can detect when it moves further at the end of travel by looking at the undivided by 4 value
        }
        else
        {
          line_horz(row_index, false);
        }

    {
      line_vert(x, false);
    }
  }

  // setup initial instruments and volumes on channels
  for (uint8_t layer_index = 0; layer_index < LAYERS; layer_index++)
  {
    uint8_t this_instrument = instrument[layer_index];
    uint8_t this_channel = channels[layer_index];
    uint8_t this_volume = volume[layer_index];
    usbMIDI.sendProgramChange(this_instrument, this_channel);
    synth.programChange(0, this_channel, this_instrument);
    usbMIDI.sendControlChange(7, this_volume, this_channel);
    synth.setChannelVolume(this_channel, this_volume);
  }
  
  for (uint8_t grid_index = 0; grid_index < GRID_SETS; grid_index++)
  {
    beatInterval[grid_index] = 15000L / tempo[grid_index];
  }
}

