updated if/else style. I blame the Arduino IDE!