work in progress on sliding window