working on the dependency tree