revert and branch