change 'byte' to 'uint8_t'