fixed nonce calculation