made the type for the render a const char so that it can work with const and non-const