better traversing through directories