update before running