added depth functions
added correlation coefficient function