remove scatter to rewrite