the sliding window problem is fixed