add extern.c and modify the border.c