removing GatherMergeRewrite