stop at the boundary