started rewriting correlation calculation for continuous variables