make pEvent a pointer, like pretty much all event variables are