added file close to block