modified GalaxyMerger