use real type for number of events