reverse the links list