updated print_serial_data