window is not working