update before build