rewrite update function