pruning redundant deps