using window instead of