window as parameter