updates before branching