adding boundary links.