traverse the dir