moved nonce to update method