remove unneccesary dependencies.