remove unwanted dependencies