changing transaction def