Finding the border