preparing for reordering