removes old dependencies