some changing for pruning