committing before changing reading to SD card instead of serial