fix file iteration example