changed char to char_t