adding private modifier to sliding window iterator