changed the serial communication to use 3 bytes instead of 9