sliding window fixes