modified instructions, corrected error detection