window: rid ourselves of a needless closure