add before branching