getting order on the border