remove unnecessary dependencies.