reformatting the link list