change unsigned char to uint8_t