changes to file.c