correlation group rewrite