modify CR code