reorder instructions