update transaction input