account for variable nEvents