added opening files in file io section