pruned all the redundant dependencies