change in cost handling when pruning