statistics generation (2)