investigating what $link is doing