testing code switch revert