reordering, correcting links