changed data buffer to LCD and serial output function