slightly modify correlation summation to compute absolute values