added more logging to sliding window logic