only set the nonce if actually used.