revised C file