linking functions