changed instructionID to zero based