refactor the transaction type and name