revert before branching