finished sliding window problem