specialized extrema for ranges