added function closed_files()