account for any size input in tx creation