changed to window mode