add part function of statistic and comparison check