do the error handling when the initial file does not exist