added close file