trying to find problem with numEvents