changed char to int8_t