changed osmeneger, added min,max window