using fileIterator