rewrite remove