update nonce function.
clear up.