added a return link function