added the event variable ev to event.pull()