more acturate window selction