add statistics functionality