respect global vars for window size