renamed xwindow to window