update method to calculator correlation coefficient