up to, not including, minWindow