removed deprecated conversion warning by using const char