generateInstruction() started