revise cube pruning