minor changes before pruning