clean up files.c