fixed const char* to char* error