modify code to down-sample and take correlation between 2 channel data