reformat link and add postion info in ref