rearranged the links