made window width test greater than or equal to threshold