sliding window PPC added