trying to fix uint8_t issue