updaing readSerial