changed char* to const char*