change the ref in the grouper