edit before branching