changed potential unsafe "char*" to "const char*"