replaced glob() by GlobIterator