Boundary regression working