changed assignment to const char*