switch to window is not used anymore