 
 void loop()
 {
-  String type = "";
-  int time = 0;
-  int looper = 0;
-  int repeat = 0;
   // read from bluetooth
   if(btSerial.available()) {
     while(btSerial.available()) {
       BUFFER += (char)btSerial.read();
       delay(1);
     }
-    BUFFSTORE = BUFFER;
     
     Serial.println("BUFFER: "+BUFFER);
     String buff = "";

      // get a value
      if(BUFFER[i+1] == ':') {
        if(index == 0) {
          type = buff;
          index++;
        }
        else if(index == 1) {
          looper = buff.toInt();
          index++;
        }
        else if(index == 2) {
          time = buff.toInt();
          index++;
        }
        buff = "";

    TIME_START = millis();
    if(REPEATING) {
      Serial.println("repeat");
      blink(LOOP, TIME);
    }
  }
  
