windows max and min working