switched to numpy and corr