reorganize transactions