modify window and engine