added MinMaxMode()