update before beginning