switched to sliding window analysis