changed order of instructions