got auto and cross correlation working