pruning excess lines