removed lasttransaction logic