add statistics method