modified min window size