add gate statistic