changed to use the built-in file function