fixing mixup with const char *