added prune methods
contour pruning compiles, debug it