minor changes to C file