moved autocorrelation stuff to separate script