Update makeLink Function