removing directoryIterator since we don't use it anymore