updating for serial output