added setDeps methdo