remove reference to window