functionality for merging resonances
ditch old example of using API
oops, group assignments