refactored min/max combinators