added collectDeps