use the window variable