added link function. (not tested)