another print in a loop, writing out child file