added group field to a transaction to track which group it belongs to