optimizing the dependencies