iterative file creation