added file name as const char*