refactored processed transaction handling