use window explicitly