reuse the iterate over a folder