get rid of unnecessary file close warning -- the file is closed outside
of this method