added file close