ordering before pruning
ordering before pruning merge