added options to statistic functions