should be window not null