working on directory tree