added a/b pruning