use reduce in correlation calculations