error handling when there is no file