preparing event stats