renamed a function
made two new statistic functions