clear unneeded dependencies