adding links to joined array