remove unrequired dependencies