removes unused dependencies