             g_h = g;
           }
         }
-        else
+        else if (rNotChage)
         {
           th_Val[5].r_t = ((float) r_h * thErrON);
           th_Val[5].g_t = ((float) g_h * thErrOFF);

      r_h = g_h = b_h = 0;
      while (true)
      {
        tcs.getRawData(&r, &g, &b, &c); //get env info
        if (r > r_h)
        {
          r_h = r;
          if (g_h < g)
          {
            g_h = g;
          }
        }
        else if (b > b_h)
        {
          b_h = b;
          if (g_h < g)

          ledControl(j);
        }
      }
    }
    else if (inputHOLD == partyM)
    {
      randomLed();
    }
    else if (inputHOLD == recal) //start recalabration seq. wait for synchronization seq.
    {
