statistic is supported now, needs more optimization