change to check if file exists in close file