finish most of statistic part in text interface