modified reorder