simplify the dependency graph