reformat links