started a/b pruning code