more transaction/balance logic