refactoring switch on min_raise