autocorrelation method