switch order of read generation and error-adding