formatting reference links