add link matrix