window size generalized