update() callback in node