refactor some unnecessary assignments of dependents