created Links function