make link function