added sliding window analysis for thetas