Border deal explained