adjust the order of instructions