     case 2:
       //firing BK only
       float setBKpct = setBK / 100.0;
-      float onDuration = (float)window * setBKpct;
-      float offDuration = (float)window - onDuration;   
+      float BKonDuration = (float)window * setBKpct;
+      float BKoffDuration = (float)window - BKonDuration;   
       
       if (!paused)
       {
         //if (BKon)
         if (digitalRead(BKSSR))
         {
-          if ((currentMillis - previousMillis > (long)onDuration) && (setBK < 100))
-          {
-            previousMillis = currentMillis;
+          if ((currentMillis - previousMillis > (long)BKonDuration) && (setBK < 100))
+          {
             elementOff(2);
           }
         }
         else
         {
-          if (currentMillis - previousMillis > (long)offDuration)
-          {
-            previousMillis = currentMillis;
+          if (currentMillis - previousMillis > (long)BKoffDuration)
+          {
             elementOn(2);
           }
         }

      break;
    case 1:
      //firing HLT and RIMS
      if ((!paused) && (currRIMS < setRIMS) && (currRIMS != 0))
      {
        //ensure HLT off

long previousMillis = 0;
long tempPrevMillis = 0;
//boolean BKon = false;

float setRIMSpct = 0.50;
float RIMSwindow = 1.0;
float RIMSonDuration;
float RIMSoffDuration;
 
#define Neutral 0
#define Press 1
