use iterate() to avoid running out of memory inserting forms and cases