 
   for (i = 0; i < numOfLeds; i++) {
 
-    leds[i].setRGB(red, green, blue);
-    FastLED.show();
-    delay(wait);
-  }
-
-  for (i = 0; i < numOfLeds; i++) {
-
-    leds[i].setRGB(0, 0, 0);
+    leds[i] = color;
+    FastLED.show();
+    delay(wait);
+  }
+
+  for (i = 0; i < numOfLeds; i++) {
+
+    leds[i] = CRGB::Black;
     FastLED.show();
     delay(wait);
   }
 
   for (i = numOfLeds; i >= 0; i--) {
 
-    leds[i].setRGB(red, green, blue);
+    leds[i] = color;
     FastLED.show();
     delay(wait);
   }
 
   for (i = numOfLeds; i >= 0; i--) {
 
-    leds[i].setRGB(0, 0, 0);
-    FastLED.show();
-    delay(wait);
-  }
-}
-
-void progressbarCentered(CRGB *leds, int numOfLeds, int red, int green, int blue, int duration) {
+    leds[i] = CRGB::Black;
+    FastLED.show();
+    delay(wait);
+  }
+}
+
+void progressbarCentered(CRGB *leds, int numOfLeds, CRGB color, int duration) {
 
   int i, center, inv, wait;
 


  for (i = 0; i < numOfLeds; i += steps) {

    leds[i].setRGB(0, 0, 0);
  }

  FastLED.show();

  }
}

void sparkleAtRandomIndex(CRGB *leds, int numOfLeds, CRGB color, int ms){
  int randomIndex = random8(numOfLeds);
  sparkleAt(randomIndex, leds, numOfLeds, color, ms);
}

void flashyShit(CRGB *leds, int numOfLeds, int ms, int maxIntensity){
  int middle = numOfLeds / 2;
  int randred,randgreen,randblue;
  
  for (int i = 0; i < numOfLeds / 2; i ++){
    randred = random8(maxIntensity);
    randgreen = random8(maxIntensity);
    randblue = random8(maxIntensity);
    
    leds[middle + i] = CRGB(randred,randgreen,randblue);
    leds[middle - i] = CRGB(randred,randgreen,randblue);
    FastLED.show();
    delay(ms / (numOfLeds / 2));
    
    leds[middle + i] = CRGB::Black;
    leds[middle - i] = CRGB::Black;
    FastLED.show();
  }
  
  for (int i = numOfLeds / 2; i >= 0; i --){
    randred = random8(maxIntensity);
    randgreen = random8(maxIntensity);
    randblue = random8(maxIntensity);
    
    leds[middle + i] = CRGB(randred,randgreen,randblue);
    leds[middle - i] = CRGB(randred,randgreen,randblue);
    FastLED.show();
    delay(ms / (numOfLeds / 2));
    
    leds[middle + i] = CRGB::Black;
    leds[middle - i] = CRGB::Black;
    FastLED.show();
  
  }
}

void randomIndexFill(CRGB *leds, int numOfLeds, CRGB color, int ms){
  int ledsOn[numOfLeds];
  memset(ledsOn, 0, sizeof(ledsOn));
  int onCounter = 0;
