remove duplicate and unused dependencies.