minor changes to window.