char* error fixed