added ostream to ensure proper const char* output