recreate the original order