prune dependencies