rewrite update service