added pruning heuristic = need affine changes