check window