implement updateDependency