change char* to unsigned char*