linking routines