Pruning work by the main path