change borderNum back to 5