pass in window