working on discreteCorrelation