update before branching