rewrite changes