small changes, repaced chars by int8_t