fix issue #34 - statistics stuff