initial bag_merge working