adding link function