 char deviceId[3] = "??";
 char XBeeInString[50];
 int state = IDLE;
+unsigned int ledStateInterval = 500;
 unsigned long randomDelay = 0;
 unsigned long start_time;
 unsigned long end_time;

    break;

  case CONNECTED:

    // temporarily for debugging 
    digitalWrite(ledStatePin, HIGH);
    delay(10000);
    state = IDLE;

      	Serial.println("[WAIT] being verified");

      	// may flash the light to indicate this
      	ledStateInterval = 200;
      	state = PENDING;
      }      
      // verifying this selection
      else if (atoi(p.id) != atoi(deviceId) && p.type[0] == 'v') {
      	// have been confirmed
      	Serial.println("[WAIT] verifying others");
	ledStateInterval = 500;
      	state = PENDING;
      }      
      else {
