event window implementation