reorder variables