rearranging links