removed Getwindow