 {
   //this is needed for the duemilanove and uno without ethernet shield
   const int sdCardPin = 10;
-  delay(1000);    
+  delay(2000);
   pinMode(10,OUTPUT);
   if (!SD.begin(sdCardPin)) {
     // don't do anything more:

  // if the file is available, write to it:
  if (dataFile) {
    dataFile.print(data);
    dataFile.close();
    // print to the serial port too:
  }

  accel.getEvent(&accel_event);
  if (dof.accelGetOrientation(&accel_event, &orientation))
  {
    sdWrite((String)accel_event.acceleration.x);
    sdWrite((String)accel_event.acceleration.y);
    sdWrite((String)accel_event.acceleration.z);
    sdWrite((String)accel_event.orientation.roll);
    sdWrite((String)accel_event.orientation.pitch);
    sdWrite((String) accel_event.orientation.heading);
    sdWriteNewline();
  }
}
