distributed statistic - first version