updating windowing