update the getStatistic functions