remove unneeded packages from dependencies