some modifications in global/statisticsTool