finish merge and reorder