some tools for working with autocorr