observation in function readFileTree