       strip.setPixelColor(a, strip.Color(red,green,blue));
       strip.setPixelColor(((strip.numPixels() - 1) - a), strip.Color(red,green,blue));
       strip.show();
-      delay(5);
+      delay(10);
     }
     delay(wait);
   }
 }
 
 void powerOff() {
-  for(int a = 0; a < strip.numPixels(); a++) {
+  for(int a = strip.numPixels()/2; a >=0; a--) {
     for(double k = 100; k >= 0; k--) {
       double percentage = k/100.0;
       uint32_t colorVal = strip.getPixelColor(a);

      b = (double)b * percentage;
     // Serial.println(r);
      strip.setPixelColor(a, strip.Color((int)r,(int)g,(int)b));
      delay(3);
      strip.show();
    }
    delay(10);

  strip.begin();
  strip.show(); // Initialize all pixels to 'off'
  //powerOn(strip.Color(255, 150, 110), 750);
  powerOn(red, green, blue, 500);
  delay(1000);
  powerOff();
}
